import request from '@/utils/request'

// 查询newregistration列表
export function listNewregistration(query) {
  return request({
    url: '/newregistration/newregistration/list',
    method: 'get',
    params: query
  })
}

// 查询newregistration详细
export function getNewregistration(registrationId) {
  return request({
    url: '/newregistration/newregistration/' + registrationId,
    method: 'get'
  })
}

// 新增newregistration
export function addNewregistration(data) {
  return request({
    url: '/newregistration/newregistration',
    method: 'post',
    data: data
  })
}

// 修改newregistration
export function updateNewregistration(data) {
  return request({
    url: '/newregistration/newregistration',
    method: 'put',
    data: data
  })
}

// 删除newregistration
export function delNewregistration(registrationId) {
  return request({
    url: '/newregistration/newregistration/' + registrationId,
    method: 'delete'
  })
}
export function getone(data) {
  return request({
    url: '/newregistration/newregistration/newone',
    method: 'post',
    data: data
  })
}
// 根据患者列表查询挂号记录
export function getListByPatientId(patientIds) {
  return request({
    url: '/newregistration/newregistration/getListByPatientId',
    method: 'post',
    data: patientIds
  })
}
